package com.weblog.common.exception;

public class DataConflictException extends RuntimeException{
    // 错误码
    private String errorCode;
    // 错误信息
    private String errorMessage;

    public DataConflictException(BaseExceptionInterface exception) {
        this.errorCode = exception.getErrorCode();
        this.errorMessage = exception.getErrorMessage();
    }
}
